<template>
  <div id="app">
    <router-view v-slot="{ Component }">
      <keep-alive>
        <component :is="Component" v-if="$route.meta.keepAlive" />
      </keep-alive>
      <component :is="Component" v-if="!$route.meta.keepAlive" />
    </router-view>
  </div>
</template>
<script>
// 获取地址栏参数
const urlParams = new URLSearchParams(window.location.search);
const token = urlParams.get("token");
const cityCode = urlParams.get("cityCode");
if (cityCode && cityCode) {
  localStorage.setItem("cityCode", cityCode);
  localStorage.setItem("token", token);
} 
// 111

</script>
<style>
body{
  overflow: hidden;
}
</style>
